package com.freesky.web.manager.remote.order.fallback;

import com.freesky.common.dao.entity.Express;
import com.freesky.common.pojo.DataTablesResult;
import com.freesky.common.utils.reponse.JSONResponse;
import com.freesky.web.manager.remote.order.ExpressRemote;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class ExpressRemoteFallback implements ExpressRemote {
    private Logger logger = LoggerFactory.getLogger(ExpressRemoteFallback.class);

    @Override
    public DataTablesResult addressList() {
        logger.error("快递服务调用出故障了");
        return null;
    }

    @Override
    public JSONResponse addExpress(Express express) {
        logger.error("快递服务调用出故障了");
        return null;
    }

    @Override
    public JSONResponse updateAddress(Express express) {
        logger.error("快递服务调用出故障了");
        return null;
    }

    @Override
    public JSONResponse delAddress(int[] ids) {
        logger.error("快递服务调用出故障了");
        return null;
    }
}
